import {createRouter, createWebHistory, RouteRecordRaw} from "vue-router";

const routes: ({ path: string; component: () => Promise<any> } | { redirect: string; path: string })[] = [
    {
        path: '/home',
        component: () => import('@/pages/home/index.vue')
    },
    {
        path: '/hospital',
        component: () => import('@/pages/hospital/index.vue')
    },
    {
        path: '/',
        redirect: '/home'
    }
]

export default createRouter({
    history: createWebHistory(),
    routes
})
